package com.imau.mapper;

import com.imau.bean.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {

    int insertBrand(Brand brand);


    int deleteById(@Param("id") Integer id);

    int updateBrand(Brand brand);

    List<Brand> selectAll();

    Brand findById(Integer id);

    //第一步 基础分页
    Long selectCount();

    List<Brand> selectByPage(@Param("currentPage") Long currentPage, @Param("size") Long size);

    // 查询分页
    Long selectCountAndCondition( Brand brand);
    List<Brand> selectByPageAndCondition(@Param("currentPage") Long currentPage, @Param("size") Long size,Brand brand);


    //批量删除
    int deleteBatchByIds(@Param("ids") Integer ids[]);

}
